import Vue, { computed } from 'vue'
import VueRouter from 'vue-router'

import Layoue from '@/views/layoue.vue'
import Index from '@/views/index.vue'
import Tabulation from '@/views/tabulation.vue'
import Consult from '@/views/consult.vue'
import My from '@/views/my.vue'


import Jump from '@/views/jump.vue'

Vue.use(VueRouter)

const router = new VueRouter({
    routes: [
        {
            path: '/',
            component: Layoue,
            redirect:'/index',
            children: [
                {
                    path: 'index',
                    component: Index
                },
                {
                    path: 'tabulation',
                    component: Tabulation
                },
                {
                    path: 'consult',
                    component: Consult
                },
                {
                    path: 'my',
                    component: My
                },
            ]
        },
        {
            name:'jump',
            path:'/jump',
            component:Jump
        }
    ],
})

export default router